<?php
    $query="SELECT * FROM Klient";
    $wynik=mysql_query($query) or die('zapytanie niudane: '.mysql_error());
    echo "<form action=\"skrypty/peln/akcje/wstawPeln.php?login=$login&opcja=nowy\" method=\"post\">";
    echo "Klient: <BR><select name=\"klient\">";
        while($line = mysql_fetch_array($wynik, MYSQL_NUM))
            echo "<option value=\"$line[0]\">$line[1] $line[2]</option>";
    echo "</select><BR>";
    
	echo "Opis: <br> <textarea name=\"opis\" rows=\"20\" cols=\"90\"></textarea> <br>
          <input type=\"submit\" value=\"Wyślij\">
			</form>";
?>
